package com.xieyingwangluo.yxpart.service.impl;

import com.xieyingwangluo.yxpart.entity.SkillModel;
import com.xieyingwangluo.yxpart.mapper.SkillMapper;
import com.xieyingwangluo.yxpart.service.SkillService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SkillServiceImpl implements SkillService {
    @Autowired
    private SkillMapper skillMapper;

    @Override
    public int add(SkillModel skill) {
        return skillMapper.add(skill);
    }

    @Override
    public SkillModel getById(String noid) {
        return skillMapper.getById(noid);
    }

    @Override
    public int upd(SkillModel skillModel) {
        return skillMapper.upd(skillModel);
    }

    @Override
    public int del(String noid) {
        return skillMapper.del(noid);
    }

    @Override
    public List<SkillModel> selA(SkillModel skillModel) {
        return skillMapper.selA(skillModel);
    }
}
